import unittest
import sqlexecx
from sqlexecx import with_connection
from config import MYSQL, PGSQL
from mysql_test import full_test as mysql_test
from pymysql import connect


class MyTestCase(unittest.TestCase):

    sqlexecx.init(lambda: connect(**MYSQL), debug=True, show_sql=True, pool_size=2)

    # @with_connection
    def test_mysql(self):
        mysql_test()
        self.assertEqual(True, True)


if __name__ == '__main__':
    unittest.main()
